package com.xjtu.mybatisplus.mapper;

import com.xjtu.mybatisplus.model.domain.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjtu.mybatisplus.model.vo.comment.CommentsVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lsong
 * @since 2023-12-27
 */
public interface CommentMapper extends BaseMapper<Comment> {

    List<CommentsVo> queryByArticalId(Integer id);

    List<Long> selectRecursiveCommentIds(Long id);

    void recursiveLogicDelete(List<Long> commentIds);
}
